package ck.com.api;

import ck.com.dto.Dto;
import ck.com.pojo.Purchaseorder;
import com.github.pagehelper.PageInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;
@RequestMapping("/purchaseOrder")
public interface PurchaseOrderApi {
    @RequestMapping("/selAll")
    Dto<PageInfo<Purchaseorder>> sel(@RequestBody Map<String,Object> map);
    @RequestMapping("/delById")
    Dto<Integer> del(@RequestParam("id") Integer id);
    @RequestMapping("/updAudit")
    Dto<Integer> updAudit(@RequestBody List<Purchaseorder> list);
    @RequestMapping("/updByUserId")
    Dto<Integer> updtg(@RequestBody Map<String,Object> map);
    @RequestMapping("/selById")
    Dto<Purchaseorder> selById(@RequestParam("id") Integer id);
    @RequestMapping("/updbtgByUserId")
    Dto<Integer> updbtg(@RequestBody Map<String,Object> map);
    @RequestMapping("/add")
    Dto<Integer> addPurchase(@RequestBody Purchaseorder purchaseorder);
    @RequestMapping("/updpay")
    Dto<Integer> pay(@RequestParam("id") Integer id);
}
